package hc.j2me.ui;

import hc.core.HCTimer;

/**
 * 不采用RemoveableHCTimer，实例退出时，手动移出数组
 *
 */
public class ActionWatcherTimer extends HCTimer {
	public PNGGameCanvas gameCanvas;
	
	public ActionWatcherTimer(String name, int ms, boolean enable) {
		super(name, ms, enable);
	}
	
	public void endAction(){
		setEnable(false);
		resetTimerCount();
	}
	
	public void doBiz() {
//		L.V = L.O ? false : LogManager.log("hcTime action ActionWatcherTimer");
		if(gameCanvas.isDragged == false){
			//长按
			gameCanvas.popUpShortActionMenu();
		}
		endAction();
	}

}
